 
        <form method="post" id="form-setting" data-type="ajaxSubmit" action="<{:U('withdraw_set')}>">
            <div class="pay-content">
                <div class="item " style="padding:10px;">
                    <div class="item_info">持卡人</div>
                    <div class="item_money" style="padding:0px; margin:0px">
                        <input type="text" readonly value="<{$user_info.name}>" style="font-size:16px" placeholder="" name="setting[name]" class="item-input">
                        <div class="clear"></div>
                    </div>
                </div>
                <div class="item " style="padding:10px; ">
                    <div class="item_info">身份证号</div>
                    <div class="item_money" style="padding:0px; margin:0px">
                        <input type="hidden" value="<{$setting.bank}>" name="setting[bank]">
                        <input type="number" value="<{$setting.idCard}>" style="font-size:16px" placeholder="用于验证银行卡" name="setting[idCard]" id="item-input-money" class="item-input">
                        <div class="clear"></div>
                    </div>
                    <div class="item_info light"></div>
                </div>
                <div class="item " style="padding:10px;">
                    <div class="item_info">银行卡账号</div>
                    <div class="item_money" style="padding:0px; margin:0px">
                        <input type="hidden" value="<{$setting.bank}>" name="setting[bank]">
                        <input type="number" value="<{$setting.account}>" style="font-size:16px" placeholder="请绑定持卡本人的银行卡" name="setting[account]" id="item-input-money" class="item-input">
                        <div class="clear"></div>
                    </div>
                    <div class="item_info light"></div>
                </div>
                <div class="item " style="padding:10px;">
                    <div class="item_info">手机号</div>
                    <div class="item_money" style="padding:0px; margin:0px">
                        <input type="number" readonly value="<{$user_info.phone}>" style="font-size:16px" placeholder="" name="setting[phone]" id="txtBindPhone" class="item-input">
                        <div class="clear"></div>
                    </div>
                    <div class="item_info light"></div>
                </div>
                <div class="item " style="padding:10px;">
                    <div class="item_info">手机验证码</div>
                    <div class="item_money" style="padding:0px; margin:0px">
                        <div class="col-sm-3 col-xs-6" style="padding:0px; margin:0px">
                            <input type="text" style="font-size:16px" class="item-input" name="txtPhoneCode" id="txtPhoneCode">
                        </div>
                        <div class="col-sm-2 col-xs-4">
                            <button type="button" class="btn btn-white" onclick="send_code(this)">获得验证码</button>
                        </div>
                        <div class="clear"></div>
                    </div>
                    <div class="item_info light"></div>
                </div>
            </div>
            <button type="submit" style="margin-top:20px" class="btn btn-success btn-next w80">确认</button>
        </form>
        <script type="text/javascript">
        $("#form-setting").on("ajaxSubmitSuccess", function(e, content) {
            var data = JSON.parse(content);
            if (data.error == 0) {
                hiApp.alert(data.msg);
                // hiApp.jump("/User/index");
                window.history.go(-1);
            } else {
                hiApp.alert(data.msg);
            }
        })
        </script>
        <script type="text/javascript">
        function send_code(obj) {
            $(obj).removeAttr("onClick");
            var phone = $("#txtBindPhone").val();
            $.getJSON("/User/send_code", {
                phone: phone
            }, function(data) {
                if (data.error > 0) {
                    $(obj).attr("onClick", "send_code(this)");
                    hiApp.alert(data.msg);
                } else {
                    $("[name='txtPhoneCode']").val(data.msg);
                    time_wait(obj);

                }
            })

        }


        /*****验证码等待1分钟**/
        function time_wait(obj, savebg) {
            window.wait = 60;
            time(obj);

            function time(obj) {
                if (wait == 0) {
                    $(obj).html('获取验证码');
                    if (savebg == 1) {
                        $(obj).css('background', '#009FF0');
                    }
                    wait = 60;
                    $(obj).attr("onClick", "send_code(this)");

                } else {
                    $(obj).attr("onClick", "javascript:");
                    $(obj).html("重新发送(" + wait + ")");
                    $(obj).val("重新发送(" + wait + ")");
                    if (savebg == 1) {
                        $(obj).css('background', '#ccc');
                    }
                    wait--;
                    setTimeout(function() {
                            time(obj)
                        },
                        1000);

                }
            }
        }
        </script>
 
